<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Project extends Model
{
    protected $table = 'applications';

    protected $guarded = [];

    protected $dates = ['created_at', 'updated_at', 'submitted_at'];

    const STATUS_FORMAL_REVIEW_FILL_APPLICATION = 'B1';
    const STATUS_FORMAL_REVIEW_RETURNED_TO_FILL = 'B1.2';
    const STATUS_FORMAL_REVIEW_TO_REVIEW = 'B2';
    const STATUS_FORMAL_REVIEW_FAILED = 'B3';
    const STATUS_ASSIGN_REVIEW_TO_ASSIGN = 'C1';
    const STATUS_ASSIGN_REVIEW_TO_SUBMIT_ASSIGN = 'C2';

    const STATUS_EXPERT_REVIEW_TO_SCORE = 'D1';
    const STATUS_EXPERT_REVIEW_SCORE_FINISHED = 'D2';
    const STATUS_EXPERT_REVIEW_REJECTED = 'D3';

    /**
     * @deprecated 2020-06-03
     */
    const STATUS_EXPERT_REVIEW_ABNORMAL_SCORES = 'D2';
    const STATUS_EXPERT_REVIEW_TO_LEADER_REVIEW = 'D3';
    const STATUS_EXPERT_REVIEW_LEADER_REVIEW_PASSED = 'D4';
    const STATUS_EXPERT_REVIEW_LEADER_REVIEW_REJECTED = 'D5';

    const STATUS_MEETING_REVIEW_TO_REVIEW = 'E1';
    const STATUS_MEETING_REVIEW_PASSED = 'E2';
    const STATUS_MEETING_REVIEW_REJECTED = 'E3';
    const STATUS_MEETING_REVIEW_REVIEW_FINISHED= 'E4';

    const STATUS_PLAN_AWARD_TO_PLAN_AWARD = 'F1';
    const STATUS_PLAN_AWARD_TO_SUBMIT_PLAN = 'F2';
    const STATUS_PLAN_AWARD_REJECTED = 'F3';

    /**
     * @deprecated
     */
    const STATUS_PLAN_AWARD_2_TO_SET_UNDETERMINDED_INTERVAL = 'F1';
    const STATUS_PLAN_AWARD_2_SKIP_VOTE_1 = 'F2';
    const STATUS_PLAN_AWARD_2_REJECTED = 'F3';
    const STATUS_VOTE_1_TO_VOTE = 'G1';
    const STATUS_VOTE_1_TO_SUBMIT_VOTE_RESULT = 'G2';
    const STATUS_VOTE_1_REJECTED = 'G3';

    const STATUS_VOTE_TO_VOTE = 'G1';
    const STATUS_VOTE_TO_SUBMIT_VOTE_RESULT = 'G2';
    const STATUS_VOTE_REJECTED = 'G3';
    const STATUS_PREPARE_DEFENSE_TO_SELECT = 'H1';
    const STATUS_DEFENSE_TO_REVIEW = 'I1';
    const STATUS_AWARD_AWARD = 'J1';

}
